using System.Collections;
using System.Collections.Generic;
using System.IO;

namespace ZerAx.ObjectNotation
{
    public class ZonVec3I : Zon
    {
        public override ZonType Type => ZonType.Vec3I;
        public (int x, int y, int z) data;

        public ZonVec3I() { }

        public ZonVec3I((int, int, int) val)
        {
            data = val;
        }

        public override void Initialize(BinaryReader reader)
        {
            data.x = reader.ReadInt32();
            data.y = reader.ReadInt32();
            data.z = reader.ReadInt32();
        }

        public override void SerializeData(BinaryWriter writer)
        {
            writer.Write(data.x);
            writer.Write(data.y);
            writer.Write(data.z);
        }

        public override string ToString() => $"[{data.x}, {data.y}, {data.z}]";
    }
}
